package com.groupbuying.redpacket.constants;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @ClassName LargeScreenConstans
 * @Description: TODO  大屏任务状态常量
 * @Author srlg3
 * @Date 2019/11/21
 * @Version V1.0
 **/
@Component
public class LargeScreenConstants {

    /**大屏状态：无任务状态*/
    public static final String LARGE_SCREEN_STATE_NON_TASK= "0";

    /**大屏状态：计时状态*/
    public static final String LARGE_SCREEN_STATE_TIME= "1";

    /**大屏状态：执行中*/
    public static final String LARGE_SCREEN_STATE_RUNNING= "2";

    /**大屏状态：结算页面状态*/
    public static final String LARGE_SCREEN_STATE_SETTLE= "3";

    /**大屏结算页面展示时间：单位（秒）*/
    public static int LARGE_SCREEN_SETTLE_PAGE_TIME;

    /**socket主动推送,定时开始状态*/
    public static final String LARGE_SCREEN_PUSH_SOCKET_STATE_TIME_START = "00";

    /**socket主动推送,任务开始状态*/
    public static final String LARGE_SCREEN_PUSH_SOCKET_STATE_RUNNING_START = "01";

    /**socket主动推送,任务结束状态*/
    public static final String LARGE_SCREEN_PUSH_SOCKET_STATE_RUNNING_END = "02";

    /**socket主动推送字段,限制信息*/
    public static final String LARGE_SCREEN_PUSH_SOCKET_FIELD_LIMIT = "limit";

    /**socket主动推送字段,任务状态*/
    public static final String LARGE_SCREEN_PUSH_SOCKET_FIELD_STATE = "state";

    @Value("${redPacket.largeScreen.settlePageTime}")
    public void setLargeScreenSettlePageTime(int largeScreenSettlePageTime) {
        LARGE_SCREEN_SETTLE_PAGE_TIME = largeScreenSettlePageTime;
    }
}
